package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.ManagerInfo;
import com.yyp.dao.ManagerInfoDao;
import com.yyp.service.ManagerService;

@Service
public class ManagerServiceImpl implements ManagerService {
	@Resource
	ManagerInfoDao managerInfoImpl;

	//
	// public void del(String names) {

	// managerInfoImpl.delete(names);
	// }

	public void del(int id) {

		managerInfoImpl.delete(id);
	}

	public ManagerInfo find(Integer id) {
		return managerInfoImpl.find(id);
	}

	public ManagerInfo find(String name) {
		return managerInfoImpl.find(name);

	}

	public List<ManagerInfo> findAll() {
		return managerInfoImpl.findAll();
	}

	public void save(ManagerInfo entity) {
		managerInfoImpl.save(entity);
	}

	public void updata(ManagerInfo entity) {
		managerInfoImpl.updata(entity);
	}


}
